import { defineStore } from 'pinia'
interface State {
  expand: boolean
}
export const ConfigStore = defineStore('config', {
  state: () => ({
    expand: false,
  }),
  getters: {
    getExpand(): boolean {
      return this.expand
    },
  },
  actions: {
    setExpand(expand:boolean) {
      this.expand = expand
    },
    toggleExpand() {
      this.expand = !this.expand
    },
  },
})
